package com.baicaoyuan.web.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * 功能描述：邀请码
 *
 * @author 罗富祥
 * 创建时间： 2018/8/17
 */

@Data
@Component
@ConfigurationProperties(prefix = "contribution")
public class ContributionValueConfig {
    private String register;

    public BigDecimal getRegister() {
        return BigDecimal.valueOf(Double.parseDouble(register));
    }


}
